package com.cqc.zhbjcqc.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import java.util.List;

import static android.icu.lang.UCharacter.GraphemeClusterBreak.T;

/**
 * Created by ${cqc} on 2016/9/27.
 */

public abstract class BaseFragmentPagerAdapter<T> extends FragmentPagerAdapter {
    public FragmentManager fm;
    public List<T> list;
    public BaseFragmentPagerAdapter(FragmentManager fm, List<T> list) {
        super(fm);
        this.fm = fm;
        this.list = list;
    }

    @Override
    public abstract Fragment getItem(int position);

    @Override
    public int getCount() {
        return list.size();
    }
}
